<?xml version="1.0" encoding="utf-8"?><!--
SPDX-FileCopyrightText: Adam Evyčędo

SPDX-License-Identifier: GPL-3.0-or-later
-->
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	xmlns:tools="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="match_parent">

	<com.google.android.material.imageview.ShapeableImageView
		android:id="@+id/logo"
		android:layout_width="100dp"
		android:layout_height="100dp"
		android:layout_marginTop="32dp"
		android:background="@color/bimba_grey"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		app:shapeAppearanceOverlay="@style/roundedImageView"
		app:srcCompat="@drawable/ic_launcher_foreground" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/app_name"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="16dp"
		android:text="@string/app_name"
		android:textAppearance="@style/TextAppearance.AppCompat.Display1"
		app:layout_constraintEnd_toEndOf="@+id/logo"
		app:layout_constraintStart_toStartOf="@+id/logo"
		app:layout_constraintTop_toBottomOf="@+id/logo" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/defaultServerSwitchLabel"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:labelFor="@+id/defaultServerSwitch"
		android:text="@string/use_default_server"
		android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
		app:layout_constraintBottom_toTopOf="@+id/guideline40"
		app:layout_constraintStart_toStartOf="parent" />

	<com.google.android.material.materialswitch.MaterialSwitch
		android:id="@+id/defaultServerSwitch"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginEnd="8dp"
		android:checked="true"
		app:layout_constraintBottom_toBottomOf="@+id/defaultServerSwitchLabel"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintTop_toTopOf="@+id/defaultServerSwitchLabel" />

	<androidx.constraintlayout.widget.Guideline
		android:id="@+id/guideline40"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:orientation="horizontal"
		app:layout_constraintGuide_percent=".4" />

	<com.google.android.material.textfield.TextInputLayout
		android:id="@+id/server"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:layout_marginTop="16dp"
		android:layout_marginEnd="16dp"
		android:hint="@string/bimba_server_address_hint"
		android:visibility="gone"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/defaultServerSwitchLabel"
		tools:visibility="visible">

		<com.google.android.material.textfield.TextInputEditText
			android:layout_width="match_parent"
			android:layout_height="wrap_content"
			android:inputType="textUri"
			android:maxLines="1"
			tools:text="bimba.app" />

	</com.google.android.material.textfield.TextInputLayout>

	<com.google.android.material.button.MaterialButton
		android:id="@+id/server_info_button"
		style="@style/Widget.Material3.Button.TextButton"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="16dp"
		android:layout_marginStart="16dp"
		android:text="@string/what_is_a_traffic_server"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/server" />

	<androidx.constraintlayout.widget.Guideline
		android:id="@+id/guideline75"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:orientation="horizontal"
		app:layout_constraintGuide_percent=".75" />

	<Button
		android:id="@+id/account_button"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:text="@string/log_in_or_sign_up"
		android:visibility="gone"
		app:layout_constraintEnd_toEndOf="@+id/server"
		app:layout_constraintStart_toStartOf="@+id/server"
		app:layout_constraintTop_toTopOf="@+id/guideline75" />

	<Button
		android:id="@+id/anonymous_button"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:text="@string/continue_without_account"
		android:visibility="gone"
		app:layout_constraintEnd_toEndOf="@+id/account_button"
		app:layout_constraintStart_toStartOf="@+id/account_button"
		app:layout_constraintTop_toBottomOf="@+id/account_button" />

	<Button
		android:id="@+id/continue_button"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:text="@string/continue_"
		app:layout_constraintEnd_toEndOf="@+id/account_button"
		app:layout_constraintStart_toStartOf="@+id/account_button"
		app:layout_constraintTop_toTopOf="@+id/account_button" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/errorText"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="16dp"
		android:text="@string/error_while_logging_in"
		android:textAppearance="@style/TextAppearance.Material3.BodyMedium"
		android:textColor="?colorError"
		android:visibility="gone"
		app:layout_constraintBottom_toTopOf="@id/seatbelts"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@id/anonymous_button" />

	<Button
		android:id="@+id/reportButton"
		style="@style/Widget.Material3.Button.TextButton"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginEnd="16dp"
		android:text="@string/send_a_report"
		android:visibility="gone"
		app:layout_constraintBottom_toBottomOf="@+id/errorText"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintTop_toTopOf="@+id/errorText" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/seatbelts"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginEnd="8dp"
		android:layout_marginBottom="16dp"
		android:text="@string/seatbelts_everyone"
		android:textAlignment="center"
		android:textAppearance="@style/TextAppearance.Material3.BodySmall"
		android:textStyle="italic"
		app:layout_constraintBottom_toBottomOf="parent"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent" />

</androidx.constraintlayout.widget.ConstraintLayout>